import request from '@/utils/request'

// 查询客户列表
export function listCustomer(query) {
  return request({
    url: '/basic/data/customer/list',
    method: 'get',
    params: query
  })
}

// 查询客户详细
export function getCustomer(query) {
    return request({
        url: '/basic/data/customer/detail',
        method: 'get',
        params: query
    })
}

// 获取归属部门tree
export function getDeptTree() {
    return request({
        url: '/system/user/businessDeptTree',
        method: 'get',
    })
}

// 获取归属人员
export function getBusiness(query) {
    return request({
        url: '/system/user/businessList',
        method: 'get',
        params: query
    })
}

// 修改客户
export function updateCustomer(data) {
    return request({
      url: '/basic/data/customer/update',
      method: 'post',
      data: data
    })
}